package com.hongyi.app.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author JoeZhou
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties("handler")
public class RolePermission implements Serializable {
    private Integer id;
    @JsonProperty("role-id")
    private Integer roleId;
    @JsonProperty("permission-id")
    private Integer permissionId;
    /**
     * 1:1
     */
    private Role role;
    /**
     * 1:1
     */
    private Permission permission;
}
